﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.ModelBinding;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.Unity;
using Triunfadores.BusinessEntities;
using Triunfadores.BusinessLogic.Service;

namespace Triunfadores.Web.Clientes
{
    public partial class GestBeneficiarios : System.Web.UI.Page
    {
        [Dependency]
        public IBeneficiarioService BeneficiarioService { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {

        }


        public IQueryable<Beneficiario> GetBeneficiarios([Control("tbxDniBeneficiario")]string dniBeneficiario)
        {
            return BeneficiarioService.GetBeneficiarioByDni(dniBeneficiario).AsQueryable();
        }

    }
}